package com.tsinjie.metadata.java.model.hibernate;

import com.tsinjie.metadata.java.model.JavaField;

/**
 * Created by LiuXunming on 2015-10-14.
 * 多对多
 */
public class ManyToMany extends JavaField {
    private String joinTable;
    private String joinColumns;
    private String inverseJoinColumns;

    public String getJoinTable() {
        return joinTable;
    }

    public void setJoinTable(String joinTable) {
        this.joinTable = joinTable;
    }

    public String getJoinColumns() {
        return joinColumns;
    }

    public void setJoinColumns(String joinColumns) {
        this.joinColumns = joinColumns;
    }

    public String getInverseJoinColumns() {
        return inverseJoinColumns;
    }

    public void setInverseJoinColumns(String inverseJoinColumns) {
        this.inverseJoinColumns = inverseJoinColumns;
    }

    @Override
    public String toString() {
        return "ManyToMany{" +
                "name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", type='" + type + '\'' +
                ", jdbcType='" + jdbcType + '\'' +
                ", fieldName='" + fieldName + '\'' +
                ", length=" + length + '\'' +
                ", nullable=" + nullable + '\'' +
                ", defaultValue=" + defaultValue +
                ", htmlShowType='" + htmlShowType + '\'' +
                ", javaFieldValues=" + javaFieldValues +
                ", joinTable='" + joinTable + '\'' +
                ", joinColumns='" + joinColumns + '\'' +
                ", inverseJoinColumns='" + inverseJoinColumns + '\'' +
                '}';
    }
}